<template>
  <div>
    <h2>App组件</h2>
    <hr />
    <!-- 
      给子组件添加的属性并不是所有的的都是是props数据
        例如添加的class和style就不能当成props
     -->
    <A :msg="msg"></A>
  </div>
</template>
<script>
import A from "./components/A.vue";
export default {
  name: "App",
  data() {
    return {
      msg: "hello",
    };
  },
  components: {
    A,
  },
};
</script>

<style lang="less" scoped></style>
